<?php

    class Gallery_model extends MY_Model
    {
        function __construct()
        {
            parent::__construct();
            $this->table = 'gallery';
            create_folder(config_item('gallery_folder')); // create folder "pro_gallery" if not exist
        }

    }

?>
